package com.bwie.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.bwie.utils.R;
import com.bwie.vo.PageInfoVo;
import org.checkerframework.checker.units.qual.A;
import org.springframework.stereotype.Service;
import org.springframework.beans.factory.annotation.Autowired;
import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.bwie.pojo.Active;
import com.bwie.mapper.ActiveMapper;
import com.bwie.service.ActiveService;
import org.springframework.transaction.annotation.Transactional;

/**
 * @Author: 鑫仔
 * @Date:  2025/7/29 10:13
 * @Description: 
 **/
@Transactional
@Service
public class ActiveServiceImpl extends ServiceImpl<ActiveMapper, Active> implements ActiveService{

    @Autowired
    private ActiveMapper activeMapper;

    @Override
    public R activeList(PageInfoVo pageInfoVo) {
        Page<Active> page = new Page<>(pageInfoVo.getPageNum(), pageInfoVo.getPageSize());
        Page<Active> activePage = activeMapper.selectPage(page,null);
        return R.OK(activePage);
    }
}
